package com.ms3ds.system.api;

import com.ms3ds.common.core.constant.SecurityConstants;
import com.ms3ds.common.core.constant.ServiceNameConstants;
import com.ms3ds.common.core.domain.R;
import com.ms3ds.system.api.domain.SysUser;
import com.ms3ds.system.api.factory.RemoteRoleFallbackFactory;
import com.ms3ds.system.api.factory.RemoteUserFallbackFactory;
import com.ms3ds.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 角色服务
 * 
 * @author zlw
 */
@FeignClient(contextId = "remoteRoleService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteRoleFallbackFactory.class)
public interface RemoteRoleService
{
    @GetMapping(value = "/role/isAdmin/{userId}")
    public R<Boolean> isAdmin(@PathVariable("userId") Long userId);

}
